/**
 * @author iNahoo
 * @since 2018/4/1.
 */
"use strict";

function Checkerboard() {
    this.$el = null;
    this.max = 15;
    this.scale = 30;
    this.padding = 30;
    this.chessSize = 10;
    this.chesses = [];

    const that = this;

    this.init = function (controller) {

        const drawRect = function (x, y, w, h) {

        };

        const appendToBody = function () {

        };

        const bindingEvent = function () {

        };


        appendToBody();
        bindingEvent();

    };

    this.setChess = function (lx, ly, whose) {

    };

    /**
     * @param $event {Event}
     * @return {{x: Number, y: Number}}
     */
    this.getPosition = function ($event) {

    };

    this.isExist = function (position) {

    };
}
